<?php
	include_once('themes/head.php');	
	include_once('controller/notif_lakuController.php');
	include_once('controller/konfirmasiController.php');
?>	
	<div id="notif">
		<table class="table table-bordered">
			<thead>
				<th>
					Nama Pembeli
				</th>
				<th>
					Tgl Pembelian
				</th>
			</thead>
<?php
			if(!isset($all_notif) || $all_notif==0)
			{
			?>
				<tr>
					<td colspan="5">Data Tidak Ada</td>
				</tr>
			<?php
			}
			else
			{
				foreach($all_notif as $rows_notif)
				{
			?>
			<tr>
				<td><?php echo $rows_notif['nama']; ?></td>
				<td><?php echo $rows_notif['tgl_beli']; ?></td>
				<td><a class="btn" href="laku.php?id_pembeli=<?php echo $rows_notif['id_pembeli']; ?>&id_notif=<?php echo $rows_notif['id']; ?>">Konfirmasi</a></td>
			</tr>
			<?php
				}
			}
			?>
		</table>
	</div>
	
	
	<style type="text/css">
<!--
.style1 {
	font-size: medium;
	font-weight: bold;
	color: #336699;
}
-->
</style>
<?php

if(isset($_GET['id_pembeli']))
{
?>
<div id="form" class="notifikasi_form">
					<pre><h2>  PENGISIAN KONFIRMASI STATUS PEMBELIAN </h2></pre>
					<h5>  Silakan isi form konfirmasi pembelian di bawah ini :</h5	>
					<div></div>
					<form class="form-horizontal" method="post" action="#">
					
					
						<input type="hidden" name="id_pembeli" value="<?php echo $id_pembeli; ?>"/>
						<input type="hidden" name="id_notif" value="<?php echo $id_notif; ?>"/>
						<?php
						foreach($data_bio as $bio)
						{
						?>
						<div class="control-group">
							<label class="control-label" for="inputPenjual">Kepada : *</label>
								<div class="controls">
									<label class="control-label" for="inputPenjual"><?php echo $bio['nama']; ?></label>
								</div>
						<?php
						}
						?>
								</div>
								<div class="control-group">
							<label class="control-label" for="inputKeterangan">Keterangan Konfirmasi *</label>
								<div class="controls">
								<textarea name="ket" cols="20"  rows="7" id="inputKeterangan" placeholder="ket_konfirmasi"> </textarea>
									 
								</div>
								
								 
							  
						</div>
						<div class="control-group">
							<div class="controls">
								<button type="submit" name="update_notif" class="btn" id="daftar_btn">Kirim</button>
								<button type="batal" name="batal" class="btn" id="batal">Batal</button>
							</div>
						</div>
					</form>
	                <p class="style1">&nbsp;</p>
</div> 
<!-- end form -->
<?php
}
?>

<p class="style1">&nbsp;</p>
<p class="style1">&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Konfirmasi </p>
<div id="daftar konfirmasi">
	<table style="width: 750px; margin: 0 auto 60px;" cellpadding="1" cellspacing="1" class="table table-striped">
	
	 <?php
	
	if($data!=0 )
	{
	foreach($data as $rows)
	{
	
	?> 
 
		 
		<tr>
			 
			<td style="width: 550px; vertical-align: top; font-size: 0.9em;">
			<div>
				Nomor Konfirmasi :<?php echo $rows['no_konfirmasi']; ?>
				<div>Keterangan  : <?php echo $rows['ket_konfirmasi']; ?>
				<div>Waktu Konfirmasi : <?php echo $rows['waktu_konfirmasi']; ?> 
			</td>
			 		 
			</td>
        </tr>
	 <?php
		}
	}
	else
	{
	?>
		<tr>
			<td colspan="2">Konfirmasi Tidak Ada</td>
		</tr>
	<?php
	}
	?>
	</table>
</div>
	 	
	
	
<?php
	include_once('themes/footer.php');
?>